/* 清除内外边距 */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


body {
    background-image: url('../images/login_bg.jpg');
    background-size: cover;
}

/* 登录框 */
.loginAndRegBox {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 310px;
    padding: 0 25px;
    background-color: #ffffff;
}

.layui-main {
    margin-top: 20px;
}

/* 登录框标题 */
.loginAndRegBox .title {
    text-align: center;
    margin: 15px 0;
}

/* 登录面板 */
.layui-input {
    margin: 18px 0;
    padding-left: 30px;
}

.uname,
.pwd {
    position: relative;
}

.layui-icon {
    position: absolute;
    left: 6px;
    top: 6px;
}

.totle-user {
    float: right;
    margin: 10px 0;
}

.reg-box {
    display: none;
}